
<template>
    <div class="Error_box">
        <p class="title">{{ title }} <span @click="offGG">关闭浏览器</span> </p>
    </div>
</template>
<script setup>
import { onMounted, ref } from 'vue'
import { useRoute } from 'vue-router'
let title = ref('')
const route = useRoute();
onMounted(() => {
    if (route.query['0'] == '1') {
        title.value = "项目没有授权文件，请联系运维人员！"
    } else if (route.query['0'] == '2') {
        title.value = "项目授权有误，请更换授权文件！"
    } else if (route.query['0'] == '3') {
        title.value = "项目授权有误，请更换授权文件！"
    } else if (route.query['0'] == '4') {
        title.value = "未到授权文件开始时间，请在授权开始当天或之后启动项目！"
    } else if (route.query['0'] == '5') {
        title.value = "项目授权时间已过期，请联系运维人员！"
    }
})
function offGG() {
    window.close();
}
</script>
  
<style lang="less" scoped >
.Error_box {
    width: 100%;
    height: 100%;
    background-color: #ccc;
}
.title {
    font-size: 38px;
    text-align: center;
    line-height: 300px;
}
.title span {
    font-size: 28px;
    cursor: pointer;
    color: blue;
}
</style>
  